<template>
  <div class="about-author">
    <h1>关于作者</h1>
    <div class="content">
      <h2>自我介绍</h2>
      <p>{{ intro }}</p>

      <h2>联系方式</h2>
      <ul>
        <li v-for="(item, index) in contacts" :key="index">
          {{ item }}
        </li>
      </ul>
    </div>
  </div>
</template>

<script setup lang="ts">
const intro = `
你好，我是隔壁小孩，
是一名 Java 后端开发者，
欢迎交流技术，一起成长！
`.trim();

const contacts = [
  "📱 QQ：2629609794",
  "💬 微信：Levi-H2024",
  "📧 邮箱：2629609794@qq.com",
];
</script>

<style scoped>
.about-author {
  background-color: #f7f7f7; /* ✅ 浅灰背景 */
  min-height: 100vh;
  padding: 60px 24px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.about-author h1 {
  text-align: center;
  font-size: 38px; /* ✅ 最大字体 */
  margin-bottom: 40px;
  color: #222;
}

.content {
  background: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.content h2 {
  margin-top: 24px;
  font-size: 24px;
  color: #333;
}

.content p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.content ul {
  padding-left: 20px;
  font-size: 18px;
  color: #444;
}

.content li {
  margin-bottom: 8px;
}
</style>
